const shoppermosle = require('../modle/shopper')
const productsmodle = require('../modle/products')
module.exports = {
    async getdata(data) {
        const rudata = await shoppermosle.findAll({
            where: {
                ...data
            }
        })
        return rudata
    },
    async getproduct(data) {
        const rudata = await productsmodle.findAll({
            where: {
                ...data
            }
        })
        return rudata
    }
}